package cn.itsource.ymcc.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Eric Chen
 * @since 2022/7/10
 */
@Data
@ConfigurationProperties(prefix = "smscode")
@Component
//短信验证码的属性对象
public class SmsCodeProperties {
    //2次发送时间间隔
    private int twiceinterval;
    //验证码长度
    private int length;
    //过期时间
    private int expire;
    //内容
    private String content;
}
